﻿:root {
    --primary-brown: #6F1D1B;
    --primary-gold: #BA8E51;
    --bg-light: #FDF8F0;
    --text-dark: #26292D;
    --text-gray: #6c757d;
    --brand: #6F1D1B;
    --muted: #777;
    --input-bg: #f4f4f4;
    --option-hover: #f4e4bc;
    /* tune this duration to make the dashed circle line slower/faster */
    --dashed-rotation-duration: 40s; /* try 40s, 60s for very slow */
}
*, *::before, *::after {
    box-sizing: border-box !important;
}

html, body {
    max-width: 100% !important;
    /*overflow-x: hidden !important;*/
    width: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Beiruti', sans-serif !important;
    color: var(--text-dark);
}

/* --- GLOBAL UTILS --- */
.section-padding {
    padding: 0 0 0 0;
}

.section-padding-thin {
    padding: 10px 0;
}

.text-brown {
    color: var(--primary-brown);
}

.text-gold {
    color: var(--primary-gold);
}

.fw-800 {
    font-weight: 800;
}

.fw-700 {
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

    .section-header h2 {
        color: #6F1D1B;
        font-weight: 700;
        font-size: 40px;
    }

body[dir="rtl"] .section-header {
    font-size: 48px;
}

.section-header h6 {
    font-weight: 500;
    font-size: 16px;
}

.bg-flip-rtl {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

    .bg-flip-rtl::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover;
        background-position: center;
        z-index: -1;
        transition: transform 0.3s ease;
    }

body[dir="rtl"] .bg-flip-rtl::before {
    transform: scaleX(-1);
}

body[dir="rtl"] .rtl-flip {
    transform: rotate(180deg);
    display: inline-block;
}

.force-ltr {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}



.select2-selection__clear {
    display: none !important;
}

.select2-container {
    width: 100% !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single {
    height: 44px !important;
    background: #f4f4f4 !important;
    border-radius: 10px !important;
    border: none !important;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
}

.select2-container--default .select2-selection--multiple {
    min-height: 44px !important;
    background: #f4f4f4 !important;
    padding: 12px 14px;
    border-radius: 10px !important;
    border: none !important;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
}

.select2-multi-summary .select2-selection__choice {
    display: none !important;
}

.select2-multi-summary .select2-search--inline {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.select2-multi-summary .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0;
    padding-left: 14px !important;
    padding-right: 34px !important;
    color: #8c9198 !important;
    font-size: 14px;
    font-weight: 700;
}

.select2-placeholder {
    color: #999 !important;
    font-weight: 700;
}

.select2-container--default .select2-selection__rendered {
    color: #8c9198 !important;
    font-size: 14px;
    font-weight: 700;
    padding-left: 0px !important;
    padding-right: 34px !important;
    line-height: normal !important;
}

.select2-container--default .select2-selection__arrow {
    height: 100%;
    right: 12px;
}

[dir="rtl"] .select2-container--default .select2-selection__rendered {
    padding-left: 34px !important;
    padding-right: 14px !important;
    text-align: right;
}

[dir="rtl"] .select2-container--default .select2-selection__arrow {
    left: 12px;
    right: auto;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 8px 10px;
    font-size: 13px;
}

.select2-results__option[aria-disabled="true"] {
    color: #999 !important;
    background: #fafafa !important;
    font-weight: 700;
}

/* Remove checkbox bullets */
.select2-results__option:before {
    display: none !important;
}

/* Dropdown container */
.select2-dropdown {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    overflow: hidden;
}

/* Options */
.select2-results__option {
    padding: 10px 14px;
    font-size: 14px;
}

/* Hover */
.select2-results__option--highlighted {
    background: #f4e4bc !important;
    color: #000 !important;
}

/* Selected */
.select2-results__option--selected {
    background: #6F1D1B !important;
    color: #fff !important;
}

.select-count {
    font-weight: 700;
    display: inline-block;
    direction: ltr;
    unicode-bidi: embed; /* isolate digit direction */
    margin: 0 6px 0 6px;
}


.search-selects-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 equal columns */
    gap: 12px; /* Uniform gap between columns */
    margin-top: 12px;
}

/*   .search-selects-4 > * {
                                width: 190px;
                            } */

/* 3-column grid layout with uneven column widths */
.search-selects-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
    gap: 12px; /* Uniform gap between columns */
    margin-top: 12px;
}

.select-wrap {
    display: block;
}

    .select-wrap.span-2 {
        grid-column: span 2;
    }
/* helper if you want wider selects */

/* shared inputs */
.control, .small-input, .select2-container--default .select2-selection--single {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    border: 1px solid transparent !important;
    color: #333;
    background: var(--input-bg);
    font-size: 14px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
}

    .control:focus,
    .small-input:focus {
        border-color: #99582A !important;
        outline: none;
    }


/* container / card */
.search-box {
    padding: 18px 24px; /* tighter padding like the target */
    border-radius: 20px; /* softer pill */
    box-shadow: 0 18px 40px rgba(0,0,0,0.06); /* keep subtle depth */
}

/* tabs */
.search-tabs {
    padding: 6px;
    background: #E9ECEF;
    border-radius: 12px;
    width: fit-content;
    margin: 0 auto 20px;
    position: relative;
}

    .search-tabs .s-tab {
        padding: 10px 36px;
        border-radius: 10px;
        color: #6c757d;
        background: transparent;
        z-index: 2;
        font-weight: 700;
        font-size: 16px;
        text-align: center;
    }

body[dir=rtl] .search-tabs .s-tab {
    font-size: 20px;
}

.search-tabs .s-tab.active {
    color: #fff;
}
/* tab text on top of indicator */
.search-tabs .tab-indicator {
    position: absolute;
    top: 6px;
    height: calc(100% - 12px);
    border-radius: 10px;
    background: var(--primary-brown);
    z-index: 1;
    transition: left 260ms cubic-bezier(.2,.8,.2,1), width 260ms cubic-bezier(.2,.8,.2,1);
}

/* inputs / selects */
.form-control-custom,
.search-keywords,
.control,
.small-input,
.select-wrap .select2-container--default .select2-selection--single {
    height: 44px !important;
    padding: 8px 14px !important;
    border-radius: 12px !important;
    background: #F8F9FA !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
    font-weight: 700;
    color: #6c757d;
    box-sizing: border-box;
}

/* grid of filters — keep one-line layout and align vertically */
.search-selects-4, .search-selects-3 {
    display: grid;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.search-selects-4 {
    grid-template-columns: repeat(4, 1fr);
}

.search-selects-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ensure Select2 inside our select-wrap sizes correctly */
.select-wrap .select2-container {
    width: 100% !important;
}

.select-wrap .select2-selection__rendered {
    padding-left: 0 !important;
    color: #6c757d !important;
    font-weight: 700;
}

/* custom portal triggers (RealEstate / Rooms / Price etc.) */
.custom-select-wrap.filter-trigger,
.filter-trigger {
    height: 44px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #F8F9FA;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    box-sizing: border-box;
    color: #6c757d;
    font-weight: 700;
}

    /* caret alignment inside triggers */
    .filter-trigger i.fa,
    .custom-select-wrap i.fa {
        margin-left: 8px;
        color: #6c757d;
        font-size: 14px;
    }

/* address + button row: make button sit to the right and vertically centered */
.row.mb-3.flex-row .col-10 {
    padding: 3px 12px 3px 14px;
}

.row.mb-3.flex-row .col-lg-2,
.row.mb-3.flex-row .col-lg-2 .col-md-4 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* search button: maroon pill, match height of inputs */
.btn-search {
    min-width: 140px;
    max-width: 180px;
    height: 44px;
    padding: 8px 20px;
    border-radius: 12px;
    background: var(--primary-brown);
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 28px rgba(111,29,27,0.12);
}

/* small responsive tweak: on small screens stack inputs but keep button reasonable */


/* remove heavy whitespace inside portal triggers when empty */
.filter-trigger > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* final polish: ensure indicator corners match tab */
.search-tabs .tab-indicator {
    border-radius: 10px;
}


.select2-container {
    position: relative !important;
}

/* Visual: pill background, height already set elsewhere; keep it consistent */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: #F8F9FA !important; /* matches your inputs */
    border-radius: 12px !important;
    height: 44px !important;
    padding-left: 12px !important;
    padding-right: 36px !important; /* room for triangle */
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
    border: none !important;
}

/* Make the placeholder / rendered text match style */
.select2-container--default .select2-selection__rendered {
    color: #6c757d !important;
    font-weight: 700;
    font-size: 14px;
    padding-left: 0 !important;
    line-height: normal !important;
}

/* hide default Select2 arrow completely (we'll draw our own triangle) */
.select2-container--default .select2-selection__arrow {
    display: none !important;
}

/* Hide any inline Select2 clear X (keep it hidden) */
.select2-selection__clear {
    display: none !important;
}


.custom-select-wrap:has(.select2-container),
.custom-select-wrap.has-select2 {
    /* hide the old font-awesome chevron inside that wrapper */
}

    .custom-select-wrap:has(.select2-container) i.fa,
    .custom-select-wrap.has-select2 i.fa {
        display: none !important;
    }

/* draw a small downward triangle caret on the right (image 3 look) */
.select2-container--default .select2-selection--single::after,
.select2-container--default .select2-selection--multiple::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #8c9198; /* triangle color (adjust if needed) */
    pointer-events: none;
    opacity: 1;
}

/* slightly reduce size on small screens */


.select2-multi-summary .select2-selection__rendered {
    padding-right: 36px !important;
}

/* In RTL flip triangle to left */
[dir="rtl"] .select2-container--default .select2-selection--single::after,
[dir="rtl"] .select2-container--default .select2-selection--multiple::after {
    left: 12px;
    right: auto;
    transform: translateY(-50%) rotate(0deg);
}


.select2-container--default .select2-selection__arrow {
    display: none !important;
}

/* ensure absolute positioning context */
.select2-container {
    position: relative !important;
}

/* triangle caret (closed = pointing down) */
.select2-container--default .select2-selection--single::after,
.select2-container--default .select2-selection--multiple::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: 50% 40%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #8c9198; /* closed color */
    pointer-events: none;
    transition: transform 180ms cubic-bezier(.2,.8,.2,1), border-top-color 180ms linear;
    z-index: 3;
}

/* when Select2 is open rotate caret 180deg (points up) */
.select2-container--default.select2-container--open .select2-selection--single::after,
.select2-container--default.select2-container--open .select2-selection--multiple::after {
    transform: translateY(-50%) rotate(180deg);
    border-top-color: #6F1D1B; /* slightly darker on open (optional) */
}

/* small-screen tweak */


/* Ensure existing FA chevrons get hidden for wrappers that actually host Select2 */
.custom-select-wrap.has-select2 i.fa,
.custom-select-wrap.has-select2 .fa {
    display: none !important;
}

.filter-trigger,
.custom-select-wrap.filter-trigger {
    position: relative; /* ensure pseudo-element positions correctly */
}

    /* hide existing Font Awesome chevrons inside portal filter triggers */
    .filter-trigger i.fa,
    .custom-select-wrap.filter-trigger i.fa {
        display: none !important;
    }

    /* triangle caret (closed = pointing down) */
    .filter-trigger::after,
    .custom-select-wrap.filter-trigger::after {
        content: "";
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        transform-origin: 50% 40%;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #8c9198; /* closed color */
        pointer-events: none;
        transition: transform 180ms cubic-bezier(.2,.8,.2,1), border-top-color 180ms linear;
        z-index: 3;
    }

    /* open -> rotate to point up */
    .filter-trigger.open::after,
    .custom-select-wrap.filter-trigger.open::after {
        transform: translateY(-50%) rotate(180deg);
        border-top-color: #6F1D1B; /* slightly darker when open (optional) */
    }

/* RTL: place triangle on the left */
[dir="rtl"] .filter-trigger::after,
[dir="rtl"] .custom-select-wrap.filter-trigger::after {
    left: 12px;
    right: auto;
    transform: translateY(-50%) rotate(0deg);
}

[dir="rtl"] .filter-trigger.open::after,
[dir="rtl"] .custom-select-wrap.filter-trigger.open::after {
    transform: translateY(-50%) rotate(180deg);
}

/* small-screen tweak */


.hero-section {
    min-height: 720px;
    display: flex;
    align-items: center;
}
    /* Set your image here */
    .hero-section::before {
        background-image: url('../img/A/New/1.png');
    }



#hero-container-row {
    display: flex;
    justify-content: flex-end;
    margin: 0
}

.hero-content {
    display: flex;
    flex-direction: row;
    width: fit-content;
}

.hero-content-img {
    padding: 0 20px 0 20px;
}

.hero-content h1 {
    font-size: 50px;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.hero-content p {
    font-size: 30px;
    font-weight: 600;
    color: black;
    line-height: 1.2;
    margin: 0 0 20px 0;
    max-width: 650px;
}

.hero-btn {
    background-color: var(--primary-brown);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    transition: 0.3s;
}

    .hero-btn:hover {
        background-color: var(--primary-gold);
        color: #fff;
        text-decoration: none;
    }

.hero-action-btns {
    display: flex;
    justify-content: space-between;
    width: 650px;
    max-width: 700px;
}

.btn-hero-action {
    background-color: var(--primary-brown);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    font-size: 14px;
    min-width: 188px;
    text-align: center;
}

body[dir="ltr"] .btn-hero-action {
    min-width: unset;
    font-size: 12px;
}

.btn-hero-action:hover {
    background-color: #5a1715;
    color: #fff;
}


/* --- 2. SEARCH SECTION --- */
.search-section {
    margin-top: -115px; /* Overlap Hero */
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}


.search-box {
    background: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-radius: 30px;
    padding: 20px;
    margin: 0 5%;
}


.search-tabs {
    position: relative;
    overflow: visible;
    display: flex;
    background: #E9ECEF;
    border-radius: 12px;
    padding: 5px;
    width: fit-content;
    height: 60px;
    margin: 0 auto 20px;
    border: none; /* Remove border-bottom */
}



    .search-tabs .tab-indicator {
        position: absolute;
        top: 5px;
        height: calc(100% - 10px);
        left: 0;
        width: 0;
        border-radius: 10px;
        background: var(--primary-brown);
        transition: left 300ms cubic-bezier(.2,.8,.2,1), width 300ms cubic-bezier(.2,.8,.2,1);
        z-index: 1;
        pointer-events: none;
    }


.s-tab {
    position: relative;
    border: none;
    background: transparent;
    padding: 10px 36px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    color: #6c757d;
    transition: color 200ms;
    /* transition: 0.3s; */
    z-index: 2;
}

body[dir=rtl] .s-tab {
    font-size: 20px;
}

/* .s-tab.active {
                        color: var(--primary-brown);
                        border-bottom: 3px solid var(--primary-brown);
                    } */

.s-tab.active {
    /* background: var(--primary-brown);
                        color: #fff; */
    border: none; /* Remove border-bottom */
    background: transparent !important;
    color: #fff !important;
}

#searchAllText, #addressSearch {
    background: #F8F9FA;
    border: none;
    border: 1px solid transparent !important;
}

body[dir="rtl"] #searchAllText, #addressSearch {
    font-size: 16px;
}

    #searchAllText:focus, #addressSearch:focus {
        border-color: var(--text-gray) !important;
        outline: none;
    }

.custom-select-wrap {
    position: relative;
    border-radius: 12px;
    padding: 12px 15px;
    cursor: pointer;
    background: #F8F9FA;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    font-size: 14px;
    color: #6c757d;
}

.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

/* .btn-search {
                    width: 100%;
                    height: 100%;
                    background: var(--primary-brown);
                    color: #fff;
                    border: none;
                    border-radius: 8px;
                    font-weight: bold;
                } */

.btn-search {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-brown);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    padding: 12px 0;
    width: 100%;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
}

    .btn-search:hover {
        background-color: #5a1715 !important;
    }

#searchAll:hover {
    background-color: #5a1715 !important;
}



/* --- 3. WHAT DO YOU WANT --- */
.action-card {
    position: relative;
    overflow: hidden;
    /* Keep the base gradient visible to prevent the white flash */
    background: #6F1D1B;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 28px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    z-index: 0;
}

    /* Background image - Always behind everything */
    .action-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: -2;
    }

    /* Slanted Gradient Overlay on hover */
    .action-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 150%; /* Extra width for the slant */
        height: 100%;
        background: linear-gradient(90deg, #99582A 25%, #6F1D1B 40%, transparent 85%);
        opacity: 0;
        transform: translateX(-100%) skewX(-15deg); /* Start off-screen and slanted */
        transition: transform 0.6s ease, opacity 0.5s ease;
        z-index: -1;
    }


    /* Hover state */
    .action-card:hover {
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        transform: translateY(-8px);
    }

        /* Reveal image */
        .action-card:hover::before {
            opacity: 1;
        }

        /* Slide in the slanted overlay */
        .action-card:hover::after {
            opacity: 1;
            transform: translateX(-15%) skewX(-15deg); /* Slide into view */
        }

/* Background images */
.action-card--bg1::before {
    background-image: url('/images/bg-looking.jpg');
}

.action-card--bg2::before {
    background-image: url('/images/bg-owner.jpg');
}

.action-card--bg3::before {
    background-image: url('/images/bg-company.jpg');
}

/* Loading bar at bottom */
.action-card .loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background-color: var(--primary-gold);
    transition: width 0.5s ease;
    z-index: 3;
}

.action-card:hover .loading-bar {
    width: 100%;
}

/* Ensure text/icons are always on top */
.action-icon,
.action-card h4,
.action-card p {
    position: relative;
    z-index: 2;
}

/* Icon styling */
.action-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.action-card:hover .action-icon {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

/* Text colors */
.action-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #FFE6A7;
}

body[dir="rtl"] .action-card h4 {
    font-size: 20px;
}

.action-card p {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

body[dir="rtl"] .action-card p {
    font-size: 20px;
}

.col-md-3-5 {
    width: 30%;
}

.estate-logo, .hand-key-logo, .home-tree-logo {
    height: 50px;
    width: auto;
    display: block; /* Fix alignment */
    transition: all 0.3s ease;
}

.action-card:hover .estate-logo, .action-card:hover .hand-key-logo, .action-card:hover .home-tree-logo {
    transform: rotate(15deg);
}



/* --- 4. LISTINGS (8 & 4) --- */
/* ===== EXACT CARD STYLE (paste replacing previous prop-card styles) ===== */

.prop-card-new {
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(15,20,25,0.09);
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    height: 100%;
    min-width: 0;
}

/* Top image area (fills top, rounded at top corners only) */
.prop-img-wrapper {
    position: relative;
    height: 300px; /* visual height to match design */
    width: 100%;
    overflow: hidden;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    background: #eef2f4; /* fallback while image loads */
}

.prop-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.prop-card-new:hover .prop-img-main {
    transform: scale(1.03);
}

/* small circular favorite at top-left (RTL flips to left) */
.fav-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 22;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 10px 28px rgba(0,0,0,0.14); */
    cursor: pointer;
}

body[dir="rtl"] .fav-btn {
    right: auto;
    left: 14px;
}

.fav-icon-img {
    width: 22px;
    height: 22px;
}

/* carousel dots positioned near bottom of the image, just above white panel */
.prop-dots {
    position: absolute;
    bottom: 105px; /* pushes dots into the area between image & content to match design */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 18;
}

    .prop-dots .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 4px 10px rgba(0,0,0,0.12);
        opacity: 0.9;
    }

        .prop-dots .dot.active {
            background: var(--primary-brown);
        }

/* White content panel overlapping the image */
.prop-content {
    margin-top: -96px; /* pull up strongly so content overlaps image like the design */
    background: #fff;
    padding: 18px 18px 22px;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(15,20,25,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 12;
    min-width: 0;
}

/* ensure text alignment follows dir */
body[dir="ltr"] .prop-content {
    text-align: left;
}

body[dir="rtl"] .prop-content {
    text-align: right;
}

/* header: inline stars + title (single row) */
.prop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-width: 0;
    white-space: nowrap;
}

body[dir="rtl"] .prop-header {
}

/* stars */
.prop-rating {
    display: inline-flex;
    gap: 6px;
    color: #F7C948;
    font-size: 10px;
    flex-shrink: 0;
}

    .prop-rating i {
        line-height: 1;
    }

/* title: slightly larger, truncated (single-line as in target) */
.prop-title {
    font-weight: 700;
    color: var(--primary-brown);
    font-size: 20px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* small location row below */
.prop-location {
    font-size: 14px;
    color: #6f6f6f;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

body[dir=rtl] .prop-location {
    font-size: 16px;
}

.prop-location i {
    color: var(--brand);
}

/* divider */
.prop-divider {
    border-top: 1px solid #efefef;
    margin: 8px 0 10px 0;
}

/* features row */
.prop-features {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

/* pill style */
.feature-item {
    background: #F5F6F7;
    border-radius: 12px;
    padding: 8px;
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    box-sizing: border-box;
}

.area-item {
    flex: 1.15 1 0;
}

/* inner layout: white icon square + values */
.feature-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: space-evenly;
    min-width: 0;
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    color: #6F6F6F;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-meta {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

body[dir="rtl"] .feature-meta {
    align-items: flex-end;
}

/* numeric */
.feature-val {
    font-weight: 800;
    font-size: 15px;
    color: #6F6F6F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* unit */
.feature-unit {
    font-size: 15px;
    color: #6c757d;
}

/* price button - full width maroon pill */
.prop-price-btn {
    background: var(--primary-brown);
    color: #fff !important;
    border-radius: 12px;
    padding: 14px 0;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    display: block;
    width: 100%;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(111,29,27,0.14);
    transition: transform .12s ease, background .12s;
}

    .prop-price-btn:hover {
        background: #5a1715;
        transform: translateY(-1px);
    }

/* hover lift */
.prop-card-new:hover {
    transform: translateY(-6px);
}

/* --- 5. DREAM HOME BANNER --- */
.dream-home-section {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dream-overlay {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 377px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background-image: url("/images/bg-dream.jpg");
    background-size: cover;
    background-position: center;
}


    .dream-overlay::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(111, 29, 27, 0.85), rgba(153, 88, 42, 0.85) );
        z-index: 0;
    }

    /* 🌫️ SOFT MOOD LAYER */
    .dream-overlay::after {
        content: "";
        position: absolute;
        inset: 0;
        /* background: rgba(0, 0, 0, 0.15); */
        pointer-events: none;
        z-index: 1;
    }

/* Text stays sharp */
.dream-text {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.6s ease;
}

body[dir="rtl"] .dream-text {
    font-size: 40px;
}

/* 🔥 Center blur panel */
.blur-overlay {
    width: 420px;
    height: 140px;
    display: grid;
    place-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    z-index: 1;
    transition: width 0.6s ease, height 0.6s ease, border-radius 0.6s ease, background 0.6s ease;
}

/* 🖱️ Hover: expand blur from center */
a:hover .blur-overlay {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

a:hover .dream-text {
    font-size: 40px;
}

body[dir="rtl"] a:hover .dream-text {
    font-size: 48px;
}


/* --- 6. NAVIGATION / HOURGLASS --- */
.navigation-process-section {
    max-height: 650px;
    align-content: center;
    background: #f9f6f2;
    overflow: hidden;
    background: url(/images/hourglass.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    margin-top: 40px;
}

    /* skyline background */
    .navigation-process-section::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 220px;
        background: url("../images/skyline.png") repeat-x bottom;
        opacity: 0.25;
        pointer-events: none;
    }

.navigation-container {
    display: flex;
    justify-content: center;
}

.navigation-inner-container {
    display: flex;
    flex-direction: column;
}

.navigation-container {
    display: flex;
    justify-content: center;
}

.navigation-inner-container {
    display: flex;
    flex-direction: column;
    transform: translate(0%, -20%);
}

.navigation-logo {
    display: flex;
    justify-content: center;
}

.navigation-logo-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    width: 245px;
    height: 245px;
    border-radius: 125px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .navigation-logo-inner:hover {
        transform: scale(1.08);
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
    }

/* logo */
.navigation-logo img {
    max-height: 160px;
    transition: all 0.3s ease;
}

.navigation-logo-inner:hover img {
    max-height: 170px;
}

.navigation-icons-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    /* text */
    .navigation-icons-item span {
        font-size: 18px;
        color: var(--primary-brown);
        font-weight: 600;
        text-align: center;
        cursor: pointer;
    }

body[dir="rtl"] .navigation-icons-item span {
    font-size: 20px;
}

/* navigation icons row */
.navigation-icons {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    gap: 45px;
}

.navigation-item {
    text-align: center;
    color: var(--primary-brown);
    cursor: pointer;
}

/* glass tile */
.navigation-item-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 18px;
    gap: 8px;
    background-color: #71717126;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
}

    .navigation-item-inner:hover {
        transform: scale(1.08);
        background-color: #7171714d;
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    }


    /* icon inside tile */
    .navigation-item-inner img {
        width: 40px;
        color: var(--primary-brown);
        transition: all 0.35s ease;
    }

    .navigation-item-inner:hover img {
        width: 45px;
    }

/* responsive */


/* --- 7. CATEGORIES --- */

/* CATEGORY BACKGROUNDS */
.bg-cat-1::after {
    background-image: url("/images/cate/سكني.png");
}

.bg-cat-2::after {
    background-image: url("/images/cate/تجاري.png");
}

.bg-cat-3::after {
    background-image: url("/images/cate/فيلات.png");
}

.bg-cat-4::after {
    background-image: url("/images/cate/مزارع.png");
}

.bg-cat-5::after {
    background-image: url("/images/cate/اراضي.png");
}

/* ===== CATEGORIES ===== */

.categories-section {
    display: flex;
}

.category-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    margin: 0 60px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    width: 100%;
    color: #ebebeb;
    border-radius: 15px;
}

.category-grid2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    padding: 10px;
}

@property --g1 {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 37.02%;
}

@property --g2 {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 62.74%;
}


/* Base card */
.category-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 40px;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    --g1: 37.02%;
    --g2: 62.74%;
    --g3: 88.46%;
}

.category-card2 {
    position: relative;
    padding: 10px;
    border-radius: 24px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

    .category-card2:hover {
        background-color: #6F1D1B;
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(111, 29, 27, 0.35);
    }

    .category-card2 .cat-content2 i {
        display: inline-block;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .category-card2:hover .cat-content2 i {
        color: #ffffff !important;
        transform: translateY(-4px) scale(1.15);
    }

    .category-card2:hover h5,
    .category-card2:hover p {
        color: #ffffff !important;
        transition: color 0.3s ease;
    }

.cat-wide {
    grid-column: span 2;
    aspect-ratio: 793 / 250;
}

.cat-square {
    aspect-ratio: 381 / 250;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.4s ease;
}

/* Default (LTR) */
.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) var(--g1), rgba(173, 93, 42, 0.95) var(--g2), rgba(111, 29, 27, 0.95) var(--g3));
    transition: var(--g1) 0.5s ease, var(--g2) 0.5s ease;
}

.category-card:hover {
    --g1: 24.52%;
    --g2: 53.85%;
}

body[dir="rtl"] .category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) var(--g1), rgba(111, 29, 27, 0.95) var(--g3));
}

/* LTR = normal */
body[dir="ltr"] .category-card::after {
    transform: scaleX(1);
}

/* RTL = flipped */
body[dir="rtl"] .category-card::after {
    transform: scaleX(-1);
}

/* Loading bar at bottom */
.category-card .cat-loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background-color: #ffe6a7;
    transition: width 0.5s ease;
    z-index: 3;
}

.cat-content2 i {
    font-size: 3.8rem;
}

.hero-content-text {
    background-color: #ffffff;
    width: 90%;
    margin: 0 5%;
    border-radius: 20px;
}

    .hero-content-text h1 {
        font-size: 3em;
        margin: 0
    }

body[dir="rtl"] .cat-loading-bar {
    left: auto;
    right: 0;
}

.category-card:hover .cat-loading-bar {
    width: 100%;
}

/* CONTENT */
.cat-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10000;
    width: 100%;
    height: 100%;
}

.portal-icon-box i {
    font-size: 4em !important;
}

body[dir="rtl"] .cat-content {
    text-align: right;
    margin-left: auto;
}

.cat-content h3 {
    font-size: 32px;
    font-weight: 600;
    color: #ffe0a3;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.cat-content2 h3 {
    font-size: 32px;
    font-weight: 600;
    color: #6f1d1b;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.cat-content p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.95;
    /* 🔥 visibility shadow */
}

/* BUTTON */
.btn-cat {
    display: inline-block;
    background: #ffe0a3;
    color: #6b2b1a;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    align-self: start;
    transition: all 0.3s ease;
}

    .btn-cat:hover {
        background: #ffeece;
        color: #4a1d12;
        transform: scale(1.1);
    }



.laptop-section {
    text-align: center;
    padding: 0px 0;
    background-color: #fff;
}

.laptop-wrapper {
    position: relative;
    display: inline-block;
    max-width: 800px;
    width: 100%;
    margin-bottom: 30px;
    line-height: 0; /* Removes extra space below image */
}

/* 1. Laptop Frame - Lower Z-Index */
.laptop-frame {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
    display: block;
}

/* 2. Video Container - Higher Z-Index & Positioning */
.video-screen {
    position: absolute;
    z-index: 5; /* Sits ON TOP of the laptop image */
    top: 12.6%;
    left: 14.8%;
    width: 70.5%;
    height: 70.8%;
    background-color: #000;
    overflow: hidden;
}

    /* 3. Make Iframe Responsive */
    .video-screen iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

.laptop-text {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* --- 9. STATS (WHAT DO YOU WANT (MODEL 2)) --- */
.stats-section {
    background-color: #fff;
    overflow: hidden;
}

.text-brown {
    color: #682b2b;
}

.description-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
}

/* --- Stats Cards --- */
.stats-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #f8f8f8;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .stats-card:hover {
        transform: translateY(-5px);
    }

    .stats-card .loading-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 4px;
        width: 0;
        background-color: #682b2b;
        background-color: var(--secondary-brown);
        transition: width 0.5s ease;
        z-index: 3;
    }

body[dir="rtl"] .stats-card .loading-bar {
    left: auto;
    right: 0;
}

.stats-card:hover .loading-bar {
    width: 100%;
}

.stats-number {
    font-size: 42px;
    font-weight: 800;
    color: #682b2b;
    margin-bottom: 5px;
    line-height: 1;
}

.stats-label {
    font-size: 15px;
    color: #888;
    font-weight: 500;
}

/* --- Visual Composition (The Circles) --- */
.stats-visual-col {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circles-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 460px;
}

/* Outer Dashed Border */
.circle-item {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    /* border: 2px dashed #682b2b; */
    overflow: visible;
    padding: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 1;
}


    .circle-item::before {
        content: "";
        position: absolute;
        inset: 0; /* match full size of .circle-item */
        border-radius: 50%;
        box-sizing: border-box;
        pointer-events: none;
        z-index: 0; /* behind inner content */
        /* dashed stroke */
        border: 2px dashed #682b2b; /* same color/width as before — adjust */
        transform-origin: 50% 50%;
        animation: rotateDashed var(--dashed-rotation-duration) linear infinite;
    }



@keyframes rotateDashed {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



.circle-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(180deg, #bf8663 0%, #682b2b 100%);
    padding: 8px;
    display: flex;
    overflow: hidden;
    z-index: 1;
}

    .circle-inner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        background: #fff;
    }



.circle-top {
    width: 250px;
    height: 250px;
    top: 0;
    right: 0; /* Top-Right */
    left: auto;
    z-index: 2;
}

.circle-bottom {
    width: 300px;
    height: 300px;
    bottom: 0;
    left: 0; /* Bottom-Left */
    right: auto;
    z-index: 1;
}


body[dir="rtl"] .circle-top {
    right: auto;
    left: 0; /* Top-Left */
}

body[dir="rtl"] .circle-bottom {
    left: auto;
    right: 0; /* Bottom-Right */
}


/* --- Responsive Media Queries --- */

.app-section {
    background: #fff;
    overflow: hidden;
    padding-bottom: 56px;
    padding-top: 15px;
}

}

/* --- Typography --- */
.app-title {
    font-size: 96px;
    font-weight: 700;
    color: #5c0000;
    line-height: 1;
    margin-bottom: 10px;
}

.app-subtitle {
    font-size: 48px;
    font-weight: 700;
    color: #a67c52;
    margin-bottom: 30px;
}

.app-desc {
    color: #777;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

/* --- Store Buttons --- */
.store-buttons-wrapper {
    flex-wrap: wrap;
}

.store-img-link img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.store-img-link:hover img {
    transform: translateY(-3px);
}

/* --- Phone Composition --- */
.phone-composition {
    width: 100%;
    max-width: 450px;
    height: 100px;
    margin: 0 auto 20px;
}

.phone-back {
    position: absolute;
    width: 25%;
    top: 60px;
    left: 80%;
    z-index: 4;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.phone-back2 {
    position: absolute;
    width: 74%;
    top: -70px;
    left: 12%;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.phone-front {
    position: absolute;
    width: 25%;
    top: 0%;
    right: 5%;
    z-index: 2;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.1));
}

/* --- DIRECTION & ALIGNMENT LOGIC --- */

/* Default / LTR Styles */
.app-text-col {
    text-align: left;
}

.app-desc {
    margin-right: auto; /* Keeps block on the left */
    margin-left: 0;
}

.store-buttons-wrapper {
    justify-content: flex-start; /* Aligns to Left */
}

/* RTL Override Styles */
body[dir="rtl"] .app-text-col {
    text-align: right;
}

body[dir="rtl"] .app-desc {
    margin-left: auto; /* Pushes block to the right */
    margin-right: 0;
}

body[dir="rtl"] .store-buttons-wrapper {
    justify-content: flex-start; /* In RTL, flex-start is the Right side */
}


/* --- Responsive Media Queries --- */

/* --- Typography --- */
.location-header {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.location-title {
    font-size: 96px;
    font-weight: 700;
    color: #5c0000;
    margin-bottom: 5px;
    line-height: 1;
}

.location-subtitle {
    font-size: 32px;
    color: #a67c52;
    font-weight: 700;
    margin: 0;
}

/* --- Map Composition Wrapper --- */
.map-composition {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px; /* Sufficient height for the large brown map */
    z-index: 1;
}

.pricing-section {
    padding: 80px 0;
    background: #fff;
}

.pricing-title {
    font-size: 64px;
    font-weight: 900;
    color: #5c0000; /* Deep Red */
    margin-bottom: 10px;
}

/* Toggle Switch */
.pricing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    background: #fff;
    border: 1px solid #8B4513;
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.p-toggle-btn {
    padding: 12px 35px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #8B4513;
}

    .p-toggle-btn.active {
        background: #8B4513; /* Brown */
        color: #fff;
    }

    .p-toggle-btn:hover:not(.active) {
        background: #f9f9f9;
    }

/* Pricing Cards */
.pricing-card {
    background: #fff;
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    height: 100%;
    transition: transform 0.3s;
    position: relative;
}

    .pricing-card:hover {
        transform: translateY(-10px);
    }

    /* Brown Card Variant */
    .pricing-card.brown {
        background: linear-gradient(180deg, #99582A 0%, #6F1D1B 100%);
        color: #fff;
        border: none;
    }

    .pricing-card h4 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #666;
    }

    .pricing-card.brown h4 {
        color: #f0f0f0;
    }

    .pricing-card h2 {
        font-size: 64px;
        font-weight: 700;
        color: #6F1D1B;
        margin-bottom: 5px;
        line-height: 1;
    }

    .pricing-card.brown h2 {
        color: #fff;
    }

    .pricing-card .period {
        font-size: 16px;
        font-weight: 500;
        color: #999;
        margin-bottom: 30px;
        display: block;
    }

    .pricing-card.brown .period {
        color: #ddd;
    }

    /* Features List */
    .pricing-card ul {
        text-align: left;
        margin-bottom: 30px;
        padding-left: 0;
        list-style: none;
    }

    .pricing-card li {
        margin-bottom: 15px;
        font-size: 16px;
        font-weight: 400;
        display: flex;
        align-items: center;
        gap: 12px;
        color: #333;
    }

    .pricing-card.brown li {
        color: #fff;
    }

    /* Icons */
    .pricing-card li i {
        color: #6F1D1B;
        font-size: 14px;
        width: 20px; /* Fixed width for alignment */
    }

    .pricing-card.brown li i {
        color: #fff;
    }

    /* Unavailable Items */
    .pricing-card li.unavailable {
        color: #aaa;
        text-decoration: line-through;
    }

        .pricing-card li.unavailable i {
            color: #ccc;
        }

/* Buttons */
.btn-pricing {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #6F1D1B;
    color: #fff;
    transition: 0.3s;
}

.pricing-card.brown .btn-pricing {
    background: #fff;
    color: #6F1D1B;
}

.btn-pricing:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* --- RTL Support --- */
body[dir="rtl"] .pricing-card ul {
    text-align: right;
    padding-right: 0;
}

/* In RTL, flex direction is row, but we need to ensure the icon is on the right */
body[dir="rtl"] .pricing-card li {
    flex-direction: row;
}

/* Responsive */

/* --- 14. CONTACT FORM --- */
.contact-section {
    background: #F9F9F9;
    padding: 80px 0;
}

/* --- Left Column Typography --- */
.contact-title-sm {
    color: #99582A;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-title-lg {
    color: #5c0000; /* Deep Red/Brown */
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 50px;
    line-height: 1.2;
    max-width: 400px;
}

/* --- Contact Items (Icon + Text) --- */
.\contact-us-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background: transparent !important; /* FORCE remove grey box */
    padding: 0 !important; /* Remove any padding from previous styles */
    box-shadow: none !important; /* Remove any shadow */
    border: none !important;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #EBE3D9; /* Light Beige Circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c0000; /* Dark Icon Color */
    font-size: 20px;
    margin-right: 20px; /* Space between icon and text (LTR) */
}

.contact-text p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #777;
    line-height: 1.6;
}

/* --- Contact Form Card --- */
.contact-form-card {
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.form-label {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-control-contact {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 25px;
    font-size: 14px;
    color: #555;
    transition: border-color 0.3s;
}

    .form-control-contact:focus {
        border-color: #99582A;
        outline: none;
        /* box-shadow: 0 0 0 3px rgba(153, 88, 42, 0.1); */
    }

.btn-contact-submit {
    background: linear-gradient(90deg, #99582A 0%, #6F1D1B 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 30px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

    .btn-contact-submit:hover {
        opacity: 0.9;
        transform: scale(1.1);
    }

/* --- RTL Support --- */
body[dir="rtl"] .contact-title-sm,
body[dir="rtl"] .contact-title-lg,
body[dir="rtl"] .contact-text {
    text-align: right;
}

body[dir="rtl"] .contact-icon {
    margin-right: 0;
    margin-left: 20px; /* Flip spacing for RTL */
}

body[dir="rtl"] .form-label {
    text-align: right;
}

/* --- Responsive Media Queries --- */


.side-widgets {
    position: fixed;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

body[dir="ltr"] .side-widgets {
    right: 30px;
}

body[dir="rtl"] .side-widgets {
    left: 30px;
}

.widget-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .widget-btn i {
        display: flex;
        align-items: center;
        justify-content: center;
    }


.whatsapp-btn {
    background: linear-gradient(0deg, #20B038 0%, #60D66A 100%);
}


.scroll-top-btn {
    background: linear-gradient(96.97deg, #99582A 9.2%, #6F1D1B 90.42%);
    opacity: 0;
    pointer-events: none;
    text-align: center;
    line-height: 50px;
    transition: all 0.3s ease;
}

    .scroll-top-btn i {
        display: inline-block;
        line-height: 1;
    }

    .scroll-top-btn.show {
        opacity: 1;
        pointer-events: auto;
    }

    .scroll-top-btn:hover {
        color: #b15010
    }

.dropdown-list {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.portal-panel .dropdown-list {
    border-top: 1px solid rgba(0,0,0,0.03);
}


/* ---------- Portal / dropdown theme & behavior ---------- */
:root {
    --primary-brown: #6F1D1B;
    --secondary-brown: #99582A;
    --option-hover: #f4e4bc;
    --panel-radius: 10px;
    --trigger-bg: #F8F9FA;
    --trigger-color: #6c757d;
}

/* Trigger */
.filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 140px;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--trigger-bg);
    cursor: pointer;
    box-sizing: border-box;
    justify-content: center;
}

    .filter-trigger > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
        text-align: center;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--trigger-color);
    }

body[dir="rtl"] .filter-trigger > span {
    font-size: 14px;
}

/* mark triggers that have children */
.filter-trigger[data-has-children="true"] > span {
    color: var(--primary-brown);
    font-weight: 700;
}

/* Portal panel - appended to body */
.portal-panel {
    background: #fff;
    border: 1px solid rgba(15,20,25,0.06);
    border-radius: var(--panel-radius);
    padding: 0;
    z-index: 9999;
    display: none;
    min-width: 260px;
    max-width: 520px;
    box-sizing: border-box;
    overflow: visible; /* only inner list scrolls */
}

    /* Header (title + X) */
    .portal-panel .dropdown-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }

body[dir="rtl"] .portal-panel .dropdown-header {
    direction: rtl;
}

.portal-panel .dropdown-header .title {
    color: #777;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-panel .dropdown-header .btn-close {
    background: transparent;
    border: none;
    font-size: 18px;
    padding: 6px;
    cursor: pointer;
    color: #6c757d;
    font-weight: 700;
}

    .portal-panel .dropdown-header .btn-close:hover {
        color: var(--primary-brown);
    }

/* Only the inner list scrolls */
.portal-panel .dropdown-list {
    padding: 8px 12px;
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

    /* option items (no heavy shadows) */
    .portal-panel .dropdown-list .dropdown-item,
    .portal-panel .dropdown-list .form-check,
    .portal-panel .dropdown-list label.dropdown-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px;
        margin: 4px 0;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
    }

        /* active option = maroon background & white text (your requested style) */
        .portal-panel .dropdown-list .dropdown-item.active,
        .portal-panel .dropdown-list label.dropdown-item.active {
            background: var(--primary-brown);
            color: #fff;
        }

        /* hover highlight for non-selected options */
        .portal-panel .dropdown-list .dropdown-item:hover,
        .portal-panel .dropdown-list label.dropdown-item:hover {
            background: var(--option-hover);
        }

/* visually hide native checkboxes while keeping them present for logic */
.portal-panel input[type="checkbox"] {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* search input inside panel */
.portal-panel .dropdown-search {
    width: calc(100% - 24px);
    margin: 8px 12px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    box-sizing: border-box;
}

/* ensure the trigger sits above layout */
.filter-trigger {
    position: relative;
    z-index: 4;
}

/* thin visible scrollbar */
.portal-panel .dropdown-list::-webkit-scrollbar {
    width: 10px;
}

.portal-panel .dropdown-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
}

.portal-panel .dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.14);
    border-radius: 10px;
}



/* --- Portal small fixes for rooms/bathrooms & real-estate visual states --- */
.portal-panel .dropdown-list .form-check,
.portal-panel .dropdown-list label.dropdown-item {
    width: 100%;
    box-sizing: border-box;
}

    /* make label text occupy full width so click area is large */
    .portal-panel .dropdown-list label.dropdown-item > span,
    .portal-panel .dropdown-list .dropdown-item > span {
        display: block;
        width: 100%;
    }

/* ensure pointer cursor and no odd vertical focus artifact */
.portal-panel .dropdown-list label.dropdown-item,
.portal-panel .dropdown-list .dropdown-item {
    cursor: pointer;
    outline: none;
}

    /* active state (rooms/baths) and parent/child buttons */
    .portal-panel .dropdown-list .dropdown-item.active,
    .portal-panel .dropdown-list label.dropdown-item.active,
    .portal-panel .btn-class.active {
        background: var(--primary-brown) !important;
        color: #fff !important;
        border-color: rgba(0,0,0,0.04);
    }

.portal-panel .dropdown-list button.btn-subtype.active {
    background: var(--secondary-brown) !important;
    color: #fff !important;
    border-color: rgba(0,0,0,0.04);
}

/* parent hover */
.portal-panel .btn-class:hover {
    background: var(--option-hover);
}

/* subtype hover (visual consistency) */
.portal-panel .btn-subtype:hover {
    background: var(--option-hover);
}

.portal-panel input[type="checkbox"]:focus-visible + span {
    box-shadow: none;
}

.portal-panel .dropdown-list .btn-subtype {
    text-align: left;
    min-width: 0;
}

.portal-panel #realEstateSubtypes {
    min-height: 34px;
}

.portal-panel input[type="text"]:focus,
.portal-panel input[type="search"]:focus,
.portal-panel .dropdown-search:focus {
    outline: none;
    /* box-shadow: 0 0 0 2px rgba(111,29,27,0.06); */
    border: 1px solid transparent;
    border-color: var(--text-gray);
}

.portal-panel .btn-class:focus,
.portal-panel .btn-subtype:focus,
.portal-panel .dropdown-list .dropdown-item:focus,
.portal-panel .dropdown-list label.dropdown-item:focus,
.portal-panel .dropdown-list .form-check:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure active parent/subtype shows maroon and no border flicker */
.portal-panel .btn-class.active,
.portal-panel .dropdown-list .dropdown-item.active,
.portal-panel .dropdown-list label.dropdown-item.active {
    background: var(--primary-brown) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.portal-panel .dropdown-list button.btn-subtype.active {
    background: var(--secondary-brown) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* Clear button styling (small neutral) */
.portal-panel .btn-clear {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 8px;
    cursor: pointer;
    margin-left: 8px;
}

body[dir="rtl"] .portal-panel .btn-clear {
    margin-left: 0;
    margin-right: 8px;
}

.portal-panel .btn-clear:hover {
    color: var(--primary-brown);
}

.portal-panel .btn,
.portal-panel button {
    box-shadow: none !important;
}

.portal-panel .dropdown-header {
    gap: 6px;
    align-items: center;
}

.portal-panel .dropdown-list label.dropdown-item .ms-2,
.portal-panel .dropdown-list .dropdown-item span {
    display: block;
    width: 100%;
}





.portal-panel .dropdown-list .form-control-custom {
    width: 100%;
    height: 40px;
    padding: 10px 12px;
    box-sizing: border-box;
    font-weight: 400;
    background: #F8F9FA;
    border: 1px solid transparent !important;
}

    .portal-panel .dropdown-list .form-control-custom:focus {
        border-color: var(--text-gray) !important;
        outline: none;
    }






.filter-trigger.filter-selected {
    color: inherit !important;
    box-shadow: none;
}

    .filter-trigger.filter-selected > span {
        /* color: #fff !important; */
        color: var(--primary-brown) !important;
    }

    .filter-trigger.filter-selected i,
    .filter-trigger.filter-selected .fa {
        /* color: #fff !important; */
        color: var(--primary-brown) !important;
    }

.filter-trigger.filter-selected {
    font-weight: 700;
}

.filter-trigger.filter-selected {
    padding: 10px 18px;
}







.select-count {
    font-weight: 700;
    display: inline-block;
    direction: ltr;
    unicode-bidi: embed;
    margin: 0 6px;
}







.portal-panel .dropdown-list .dropdown-item,
.portal-panel .dropdown-list label.dropdown-item,
.portal-panel .dropdown-list .form-check,
.portal-panel .dropdown-list .btn-class,
.portal-panel .dropdown-list .btn-subtype {
    min-width: 0; /* allow flex children to shrink */
    white-space: nowrap; /* don't wrap text */
    overflow: hidden; /* hide overflow */
    text-overflow: ellipsis; /* show "..." when truncated */
    display: block; /* ensure text-overflow works reliably */
}

    .portal-panel .dropdown-list .dropdown-item > span,
    .portal-panel .dropdown-list label.dropdown-item > span,
    .portal-panel .dropdown-list .form-check .ms-2,
    .portal-panel .dropdown-list .btn-class,
    .portal-panel .dropdown-list .btn-subtype {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

#realEstateClassesList .btn-class,
#realEstateSubtypes .btn-subtype {
    max-width: 100%;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    height: 36px;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.portal-panel .dropdown-list .dropdown-item .ms-2,
.portal-panel .dropdown-list label.dropdown-item span {
    margin-left: 6px;
    margin-right: 6px;
}

/* Make sure truncation also applies in RTL pages */
[dir="rtl"] .portal-panel .dropdown-list .dropdown-item > span,
[dir="rtl"] .portal-panel .dropdown-list label.dropdown-item > span {
    text-align: right;
}

/* Optional: keep the dropdown-list from creating horizontal scrollbars when many long buttons exist */
.portal-panel .dropdown-list {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

.filter-trigger[data-filter="real-estate"] > span,
.custom-select-wrap.filter-trigger[data-filter="real-estate"] > span {
    display: block !important; /* block-level so width/ellipsis works */
    width: calc(100% - 24px) !important; /* reserve room for caret + margin */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: start;
    vertical-align: middle !important;
    padding-right: 8px !important; /* little breathing room before caret */
}

.filter-trigger[data-filter="real-estate"] .select-count {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
    margin: 0 6px;
}

/* RTL: flip reserved padding so caret area still held */
body[dir="rtl"] .filter-trigger[data-filter="real-estate"] > span,
body[dir="rtl"] .custom-select-wrap.filter-trigger[data-filter="real-estate"] > span {
    width: calc(100% - 24px) !important;
    padding-left: 8px !important;
    padding-right: 0 !important;
    text-align: right !important;
}

:root {
    --brand-primary: #6B1D1D;
    --brand-dark: #4A1212;
    --brand-accent: #E5A853;
    --brand-light-bg: #FAF5EF;
}

.text-brand {
    color: var(--brand-primary) !important;
}

.text-brand-accent {
    color: var(--brand-accent) !important;
}

.bg-custom-brand {
    background-color: var(--brand-primary) !important;
}

.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    transition: all 0.3s ease;
}

    .btn-brand:hover {
        background-color: var(--brand-dark);
        border-color: var(--brand-dark);
        color: #ffffff;
    }

.btn-brand-light {
    background-color: var(--brand-accent);
    color: var(--brand-primary);
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

    .btn-brand-light:hover {
        background-color: #d8963e;
        color: #ffffff;
    }

.x-small {
    font-size: 0.75rem;
}


.step-icon-wrap {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px dashed var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand-primary);
    transition: all 0.3s ease;
}

.step-item:hover .step-icon-wrap {
    background-color: var(--brand-primary);
    color: #ffffff;
    border-style: solid;
    transform: translateY(-5px);
}

.sanad-home-card {
    width: 100%;
    background: url("../img/A/3.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.card-bg-overlay {
    position: absolute;
    inset: 0;
}

.product-item-card {
    transition: all 0.3s ease;
}

    .product-item-card:hover {
        transform: translateY(-4px);
        border-color: var(--brand-primary);
    }


.dev-banner-card {
    background: linear-gradient(135deg, #3A1010 0%, var(--brand-primary) 100%);
}



.laptop-mockup {
    max-height: 400px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
}


.portal-icon-box {
    background-color: #ffffff;
    transition: all 0.3s ease;
}

    .portal-icon-box:hover {
        border-color: var(--brand-primary) !important;
        transform: translateY(-3px);
    }

.app-download-card {
    background-color: var(--brand-light-bg) !important;
}

.features-grid {
    width: 74%;
    display: flex;
    gap: 15px; /* المسافة بين الأزرار */
    direction: rtl; /* لضمان ظهور الأيقونة على اليمين والنص على اليسار */
    margin: 0 13%;
}

.feature-card {
    flex: 1; /* يجعل الأزرار الثلاثة تتمدد بالتساوي لتملأ العرض */
    display: flex;
    align-items: center;
    justify-content: space-between; /* محاذاة المحتوى */
    padding: 6px 30px;
    background-color: rgb(111 29 27);
    border-radius: 15px;
    transition: all 0.3s ease;
}



.feature-text h6 {
    color: #ffffff; /* لون العنوان أبيض */
    font-size: 15px;
}

.CW {
    color: #fff;
}

.feature-text small {
    color: #d1d1d1; /* لون النص الفرعي رمادي فاتح */
    font-size: 16px;
}

.feature-icon i {
    font-size: 2.2rem;
    color: #6F1D1B; /* لون الأيقونة */
    transition: all 0.3s ease;
}



/* Container & Section */
.sanad-services-section {
    padding: 20px 0;
    background-color: #fafbfc;
    width: 100%;
}

/* Full Width Wrapper مع هامش جانبي نسبتي */
.sanad-wrapper {
    width: 100%;
    padding-left: 4%;
    padding-right: 4%;
    box-sizing: border-box;
}

/* Header Styling */
.services-header {
    text-align: right;
    margin-bottom: 50px;
}

.title-with-number {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

    .title-with-number h2 {
        font-size: 28px;
        font-weight: 700;
        color: #1a252c;
        margin: 0;
    }

.section-num {
    font-size: 24px;
    font-weight: 700;
    color: #752724;
}

.services-header .subtitle {
    color: #718096;
    font-size: 15px;
    margin-top: 8px;
}

.services-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 40px 0;
    width: 100%;
}

    .services-timeline::before {
        content: '';
        position: absolute;
        top: 32px;
        left: 30px;
        right: 30px;
        height: 1px;
        border-top: 2px dashed #cbd5e1;
        z-index: 1;
    }

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    padding: 0 5px;
}

.icon-wrapper {
    width: 65px;
    height: 65px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

    .icon-wrapper svg {
        stroke: #752724;
        transition: stroke 0.3s ease;
    }

.timeline-step:hover .icon-wrapper {
    transform: translateY(-4px);
    background-color: #752724; /* خلفية خمري/عنابي عند الهوفر */
    border-color: #752724;
    box-shadow: 0 6px 16px rgba(117, 39, 36, 0.35);
}

    .timeline-step:hover .icon-wrapper svg {
        stroke: #ffffff !important; /* لون الأيقونة أبيض عند الهوفر */
    }


.timeline-step p {
    font-size: 12px;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

/* Button Styling */
.cta-wrapper {
    text-align: center;
    margin-top: 45px;
}

.btn-sanad {
    display: inline-block;
    background-color: #752724;
    color: #ffffff;
    padding: 10px 32px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-sanad:hover {
        background-color: #752724;
        color: #ffffff;
        transform: translateY(-2px);
    }

/* Responsiveness */

:root {
    --color-maroon: #752724; /* اللون الرئيسي */
    --color-bronze: #99582A; /* اللون الفرعي للخطوط والبراعة */
    --bg-card: #f8fafc;
    --border-color: #e2e8f0;
}

/* Tagline */
.tagline-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tag-line {
    width: 25px;
    height: 2px;
    background-color: var(--color-bronze);
    display: inline-block;
}

.tag-text {
    color: var(--color-bronze);
    font-size: 25px;
    font-weight: 700;
}

/* Titles */
.main-title {
    font-size: 60px;
    font-weight: 800;
    color: var(--color-maroon);
    line-height: 1.2;
}

.sub-title {
    color: var(--color-bronze);
    font-weight: 700;
    font-size: 19px;
}

.description-text {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

/* Stats 4 Cards Row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-4px);
        border-color: var(--color-maroon);
        box-shadow: 0 10px 20px rgba(117, 39, 36, 0.06);
    }

.stat-icon {
    margin-bottom: 8px;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-maroon);
    margin: 0;
    line-height: 1.2;
}

.stat-label {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 4px;
}

.stat-sublabel {
    font-size: 15px;
    color: #64748b;
    margin-top: 2px;
}

/* Image Section */
.hero-img-container {
    position: relative;
    width: 100%;
}

.main-city-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-maroon);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(117, 39, 36, 0.3);
    z-index: 2;
    font-weight: 700;
    font-size: 15px;
}

/* Bottom Features Banner Bar */
.bottom-features-bar {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.main-feature-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

.bullseye-icon-box {
    width: 54px;
    height: 54px;
    min-width: 54px;
    background-color: var(--color-maroon);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-feature-info h4 {
    font-size: 25px;
    font-weight: 800;
    color: #752724;
    margin: 0 0 4px 0;
}

.main-feature-info p {
    font-size: 22px;
    color: #000000;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.sub-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.sub-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    border-left: 1px solid var(--border-color);
}

    .sub-feature-item:last-child {
        border-left: none;
    }

    .sub-feature-item span {
        font-size: 17px;
        font-weight: 700;
        color: #1e293b;
    }


/*@media (max-width: 1200px) {
    .main-title {
        font-size: 34px;
    }

    .bottom-features-bar {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .main-feature-box {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .main-city-img {
        height: 320px;
    }

    .features-grid {
        margin: 12px 70px !important;
        width: 80% !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sub-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sub-feature-item {
        border-left: none;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 26px;
    }

    .sub-title {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-number {
        font-size: 20px;
    }

    .floating-badge {
        font-size: 12px;
        padding: 10px 18px;
        width: 90%;
        justify-content: center;
    }

    .sub-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .main-feature-box {
        flex-direction: column;
        text-align: center;
    }
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.m-resposev {
    margin-top: 14%;
}
@media (min-width: 1024px) and (max-width:1440px) {
    .cat-square {
        aspect-ratio: 255 / 234;
    }
}
    
    @media (max-width: 992px) {
    .category-card {
        padding: 20px;
    }

    .cat-content h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .cat-content p {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .btn-cat {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .cat-square {
        aspect-ratio: auto;
        min-height: 190px;
    }

    .category-card {
        padding: 15px;
    }

    .cat-content h3 {
        font-size: 15px;
    }

    .cat-content p {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .btn-cat {
        padding: 6px 12px;
        font-size: 11px;
        display: inline-block;
        margin-top: auto;
    }
    .category-grid {
      
        grid-template-columns: repeat(2, 1fr)!important;

    }
    .m-resposev {
        margin-top: 50%!important;
    }
    .features-grid {
        margin: 12px 34px !important;
        width: 77% !important;
    }
}
@media (max-width: 768px) {
    .features-grid {
        flex-direction: column !important;
        margin: 0px 220px !important;
        width: 40% !important;
        justify-content: center !important;
    }
}
@media (max-width: 768px) {
    .search-selects-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .row.mb-3.flex-row .col-10 {
        padding-right: 8px;
    }

    .row.mb-3.flex-row .col-lg-2 {
        justify-content: center;
        margin-top: 8px;
    }
}
@media (max-width: 520px) {
    .select2-container--default .select2-selection--single::after, .select2-container--default .select2-selection--multiple::after {
        right: 10px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #8c9198;
    }
}
@media (max-width: 520px) {
    .select2-container--default .select2-selection--single::after, .select2-container--default .select2-selection--multiple::after {
        right: 10px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #8c9198;
    }

    .select2-container--default.select2-container--open .select2-selection--single::after,
    .select2-container--default.select2-container--open .select2-selection--multiple::after {
        transform: translateY(-50%) rotate(180deg);
    }
}
@media (max-width: 520px) {
    .filter-trigger::after, .custom-select-wrap.filter-trigger::after {
        right: 10px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #8c9198;
    }

    [dir="rtl"] .filter-trigger::after,
    [dir="rtl"] .custom-select-wrap.filter-trigger::after {
        left: 10px;
    }
}
@media (max-width: 1199px) {
    .hero-content-img {
        display: none;
    }
}

@media (max-width: 991px) {
    body[dir="ltr"] #hero-container-row {
        padding-left: 100px;
    }

    body[dir="rtl"] #hero-container-row {
        padding-right: 0;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 44px;
        text-align: center;
    }

    .hero-content p {
        font-size: 20px;
    }

    body[dir="rtl"] .hero-content p {
        font-size: 28px;
    }

    .hero-action-btns {
        flex-direction: column;
        gap: 8px;
        width: unset;
    }
}

@media (max-width: 767px) {
    body[dir="ltr"] #hero-container-row {
        padding-left: 0;
    }

    body[dir="rtl"] #hero-container-row {
        padding-right: 0;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-content p {
        font-size: 20px;
    }

    .hero-action-btns {
        flex-direction: column;
        gap: 8px;
        width: unset;
    }
}

@media (max-width: 520px) {
    .hero-content h1 {
        font-size: 36px;
        margin: 0 0 10px 0;
    }
}

@media (max-width: 499px) {
    .hero-content {
        max-width: 100%;
        width: 100%;
    }

    .hero-content-text {
        width: 100%;
    }


    .hero-content h1 {
        font-size: 36px;
        margin: 0 0 10px 0;
    }

    .hero-content p {
        text-align: center;
    }

    body[dir="rtl"] .hero-content p {
        font-size: 20px;
    }

    .hero-action-btns {
        flex-direction: column;
        gap: 6px;
        width: unset;
    }
}

@media (max-width: 413px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }
}

@media (max-width: 374px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-action-btns {
        flex-direction: column;
        gap: 4px;
        width: unset;
    }
}
@media (max-width: 499px) {
    .search-tabs .s-tab {
        padding: 4px 28px;
    }
}

@media (max-width: 440px) {
    .search-tabs .s-tab {
        padding: 4px 28px;
    }
}

@media (max-width: 374px) {
    .search-tabs .s-tab {
        padding: 4px 18px;
    }
}
@media (max-width: 1199px) {
    .action-card h4 {
        font-size: 12px;
        font-weight: 400;
    }

    body[dir="rtl"] .action-card h4 {
        font-size: 16px;
    }

    .action-card p {
        font-size: 10px;
        font-weight: 400;
    }

    body[dir="rtl"] .action-card p {
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .action-row {
        flex-direction: column;
        align-items: center;
    }

    .col-md-3-5 {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .col-md-3-5 {
        width: 70%;
    }
}*/

/* Responsive adjustments */
/*@media (max-width:991px) {
    .prop-img-wrapper {
        height: 300px;
    }

    .prop-content {
        margin-top: -85px;
        padding: 16px;
    }

    .prop-title {
        font-size: 18px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .feature-item {
        min-height: 56px;
    }

    .prop-price-btn {
        padding: 12px 0;
        font-size: 15px;
        border-radius: 12px;
    }
}

@media (max-width:576px) {
    .prop-img-wrapper {
        height: 240px;
    }

    .prop-content {
        margin-top: -56px;
        padding: 12px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .feature-item {
        min-height: 48px;
        padding: 8px;
    }

    .prop-price-btn {
        padding: 10px 0;
        font-weight: 500;
        border-radius: 12px;
    }

    body[dir="rtl"] .prop-price-btn {
        font-weight: 400;
    }
}

@media (max-width: 767px) {
    .blur-overlay {
        width: fit-content;
        height: fit-content;
        padding: 20px;
        border-radius: 10px;
    }

    .dream-text {
        font-size: 20px;
    }

    body[dir="rtl"] .dream-text {
        font-size: 28px;
    }

    a:hover .dream-text {
        font-size: 22px;
    }

    body[dir="rtl"] a:hover .dream-text {
        font-size: 32px;
    }
}
@media (max-width: 991px) {
    .navigation-process-section {
        background-size: unset;
    }
}

@media (max-width: 767px) {
    .navigation-process-section {
        max-height: unset;
        height: unset;
    }

    .navigation-container {
        padding: 60px 15px;
    }

    .navigation-icons {
        flex-direction: column;
    }

    .navigation-icons-item {
        flex-wrap: wrap;
        align-content: center;
    }
}

@media (max-width: 991px) {
    .navigation-inner-container {
        transform: unset;
    }
}

@media (max-width: 1024px) {
    .phone-front {
        width: 16% !important;
        right: 11% !important;
    }

    .features-grid {
        width: 72% !important;
        display: grid !important;
    }

    .feature-text small {
        font-size: 14px !important;
    }

    .feature-icon {
        display: none !important;
    }

    .feature-text .fw-bold {
        font-size: 16px !important;
    }

    .portal-icon-box i {
        font-size: 2.5em !important;
    }

    .text-white-50 {
        font-size: 16px !important;
    }

    .fw-bold {
        font-size: 18px !important;
    }

    .phone-back {
        width: 16% !important;
    }

    .hero-content-text {
        width: 90%;
        margin: 0 5%;
    }

    .search-box .col-md-9 {
        width: 60%;
    }

    .search-box div.row div.col-lg-2 {
        width: 16% !important;
    }

    .hero-content-text h1 {
        font-size: 2em;
        margin: 0
    }

    .category-container {
        margin: 0 40px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .cat-square {
        aspect-ratio: 217 / 218 !important;
    }

    .category-card2 {
        padding: 5px;
    }

    .cat-content2 i {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .category-container {
        margin: 0 15px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 20px;
    }

        .category-card h3 {
            font-size: 16px;
        }

        .category-card p {
            font-size: 12px;
        }
}

@media (max-width: 1399px) {
    .category-grid {
        width: 1150px;
    }

    body[dir="rtl"] .category-grid {
        width: 1000px;
    }

    .category-grid2 {
        width: 1150px;
    }

    body[dir="rtl"] .category-grid2 {
        width: 1000px;
    }
}

@media (min-width: 1200px) {
    .cat-content {
        max-width: 90%;
    }
}

@media (max-width: 1199px) {

    body[dir="rtl"] .category-container {
        flex-wrap: unset;
    }



    body[dir="rtl"] .category-grid {
        width: unset;
    }

    .category-grid2 {
        width: unset;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    body[dir="rtl"] .category-grid2 {
        width: unset;
    }


    .cat-wide {
        grid-column: span 2;
        aspect-ratio: 2.4 / 1;
    }

    .cat-square {
        aspect-ratio: 3 / 2;
    }

    .category-card {
        padding: 32px;
    }

    .cat-content {
        max-width: 80%;
    }
}


@media (max-width: 992px) {
    .category-container {
        flex-wrap: unset;
    }



    .category-grid2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-wide,
    .cat-square {
        grid-column: span 1;
        aspect-ratio: 16 / 10;
    }

    .category-card {
        padding: 28px;
    }

    .cat-content {
        max-width: 60%;
    }
}

@media (max-width: 476px) {

    .category-card {
        padding: 24px;
    }

    .cat-content h3 {
        font-size: 22px;
    }

    .cat-content p {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .cat-content {
        max-width: 70%;
    }
}

@media (max-width: 389px) {
    .cat-content {
        max-width: 100%;
    }

        .cat-content p {
            margin-bottom: 10px;
        }
}

@media (max-width: 353px) {
    .cat-content p {
        margin-bottom: 0px;
    }

    .btn-cat {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .laptop-section {
        padding: 50px 0;
    }
}*/

/* For Mobile Phones (max-width: 767px) */
/*@media (max-width: 767px) {
    .laptop-section {
        padding: 30px 0;*/ /* Reduce vertical spacing */
    /*}

    .laptop-wrapper {
        margin-bottom: 20px;*/ /* Bring text closer to laptop */
    /*}

    .laptop-text {
        font-size: 14px;*/ /* Slightly smaller text for readability */
        /*padding: 0 15px;*/ /* Add side padding so text doesn't hit screen edges */
    /*}
}

@media (prefers-reduced-motion: reduce) {
    .circle-item::before {
        animation: none;
    }
}

@media (max-width: 1199px) {
    .stats-section {
        padding: 50px 0;
    }

    .stats-visual-col {
        min-height: auto;
        margin-bottom: 50px;
    }

    .circles-wrapper {
        height: 400px;
        max-width: 400px;
        margin: 0 auto;
    }

    .circle-top {
        width: 200px;
        height: 200px;
    }

    .circle-bottom {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 450px) {
    .circles-wrapper {
        height: 300px;
        max-width: 300px;
    }

    .circle-top {
        width: 140px;
        height: 140px;
    }

    .circle-bottom {
        width: 190px;
        height: 190px;
    }

    .stats-number {
        font-size: 32px;
    }

    .circle-item {
        padding: 4px;
    }

    .circle-inner {
        padding: 5px;
    }
}

@media (max-width: 991px) {
    .app-section {
        padding: 50px 0;
    }*/
    /* Force Center on Mobile regardless of direction */
    /*.app-text-col,
    body[dir="rtl"] .app-text-col {
        text-align: center;
    }

    .app-title {
        font-size: 60px;
    }

    .app-subtitle {
        font-size: 35px;
    }

    .app-desc,
    body[dir="rtl"] .app-desc {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .store-buttons-wrapper,
    body[dir="rtl"] .store-buttons-wrapper {
        justify-content: center;
    }

    .phone-composition {
        height: 400px;
        max-width: 350px;
        margin-top: 40px;
    }
}

@media (max-width: 400px) {
    .phone-composition {
        height: 300px;
        max-width: 280px;
    }

    .store-img-link img {
        height: 45px;
    }
}
@media (max-width: 768px) {
    .pricing-title {
        font-size: 40px;
    }

    .phone-front {
        width: 15% !important;
        right: 16% !important;
    }

    .phone-back {
        width: 23% !important;
        top: 122px !important;
        left: 46% !important;
    }

    .pricing-card h2 {
        font-size: 50px;
    }
}

@media (max-width: 440px) {
    .pricing-toggle {
        width: 100%;
    }

    .p-toggle-btn {
        padding: 10px 0;
        flex: 1;
        text-align: center;
    }
}*/

/* Tablet & Mobile */
/*@media (max-width: 991px) {
    .contact-section {
        padding: 50px 0;
    }

    .contact-title-lg {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .contact-form-card {
        padding: 30px;
    }
}

@media (max-width: 440px) {
    .contact-title-lg {
        font-size: 30px;
    }

    .contact-form-card {
        padding: 20px;
    }

    .btn-contact-submit {
        width: 100%;*/ /* Full width button on mobile */
    /*}

    .contact-us-item {
        gap: 15px;
    }

    .contact-icon {
        margin-right: 15px;
    }

    body[dir="rtl"] .contact-icon {
        margin-left: 15px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {*/
    /* LTR: Right side */
    /*body[dir="ltr"] .side-widgets {
        right: 10px;
    }*/
    /* RTL: Left side */
    /*body[dir="rtl"] .side-widgets {
        left: 10px;
    }
}*/
/* Responsive small tweaks */
/*@media (max-width: 520px) {
    .portal-panel {
        left: 12px !important;
        right: 12px !important;
        width: calc(100% - 24px) !important;
    }

    .filter-trigger > span {
        max-width: 120px;
    }
}

@media (min-width: 992px) {
    .search-box div.row div.col-lg-2 {
        width: 20%;
    }

    .search-box div.row div.col-10 {
        width: 80%;
    }
}

@media (max-width: 991px) {
    .search-box div.row div.col-10 {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-box div.row.align-items-center {
        flex-direction: column;
    }

        .search-box div.row.align-items-center div.mb-3 {
            width: 100%;
        }
}
@media (max-width: 992px) {
    .sanad-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .services-timeline {
        flex-wrap: wrap;
        gap: 30px 10px;
    }

        .services-timeline::before {
            display: none;
        }

    .timeline-step {
        flex: 0 0 30%;
    }
}

@media (max-width: 576px) {
    .timeline-step {
        flex: 0 0 45%;
    }
}*/

.font-size-developers {
    font-size: 20px !important;
    color: #fff;
}
.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.m-resposev {
    margin-top: 14%;
}

@media (prefers-reduced-motion: reduce) {
    .circle-item::before {
        animation: none;
    }
}


/* ==========================================
   2. DESKTOP & LARGE SCREENS (1024px - 1440px+)
   ========================================== */
@media (min-width: 1200px) {
    .cat-content {
        max-width: 90%;
    }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .cat-square {
        aspect-ratio: 255 / 234;
    }
}

@media (max-width: 1399px) {
   
    .category-grid2 {
        width: 1150px;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr)!important;
    }

    body[dir="rtl"] .category-grid,
    body[dir="rtl"] .category-grid2 {
        width: 1000px;
    }

}


/* ==========================================
   3. LAPTOPS & SMALL DESKTOPS (max-width: 1199px)
   ========================================== */
@media (max-width: 1199px) {
    /* Typography & Layout */
    .main-title {
        font-size: 34px;
    }
    .category-container {
   
        margin: 0 0px!important;
    }
   .features-grid {
      
        display: grid;
      
    }
    .hero-content-img {
        display: none;
    }
    .btn-search {
        min-width: 95px!important;
      
    }
    /* Features & Actions */
    .bottom-features-bar {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .main-feature-box {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
    }

    .action-card h4 {
        font-size: 12px;
        font-weight: 400;
    }

    .action-card p {
        font-size: 10px;
        font-weight: 400;
    }

    body[dir="rtl"] .action-card h4,
    body[dir="rtl"] .action-card p {
        font-size: 16px;
    }

    /* Categories Grid */
    body[dir="rtl"] .category-container,
    body[dir="rtl"] .category-grid,
    body[dir="rtl"] .category-grid2 {
        flex-wrap: unset;
        width: auto;
    }

    .category-grid2 {
        width: auto;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cat-wide {
        grid-column: span 2;
        aspect-ratio: 2.4 / 1;
    }

    .cat-square {
        aspect-ratio: 3 / 2;
    }

    .category-card {
        padding: 32px;
    }

    .cat-content {
        max-width: 80%;
    }

    /* Stats Section */
    .stats-section {
        padding: 50px 0;
    }

    .stats-visual-col {
        min-height: auto;
        margin-bottom: 50px;
    }

    .circles-wrapper {
        height: 400px;
        max-width: 400px;
        margin: 0 auto;
    }

    .circle-top {
        width: 200px;
        height: 200px;
    }

    .circle-bottom {
        width: 260px;
        height: 260px;
    }
}


/* ==========================================
   4. TABLETS & PORTRAIT TABLETS (max-width: 991px)
   ========================================== */
@media (max-width: 991px) {
    /* Hero & Container Alignment */
    body[dir="ltr"] #hero-container-row {
        padding-left: 100px;
    }

    body[dir="rtl"] #hero-container-row {
        padding-right: 0;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 44px;
        text-align: center;
    }

    .hero-content p {
        font-size: 20px;
    }

    body[dir="rtl"] .hero-content p {
        font-size: 28px;
    }

    .hero-action-btns {
        flex-direction: column;
        gap: 8px;
        width: unset;
    }

    .hero-content-text {
        width: 90%;
        margin: 0 5%;
    }

        .hero-content-text h1 {
            font-size: 2em;
            margin: 0;
        }

    /* City & Features */
    .main-city-img {
        height: 320px;
    }

    .features-grid {
        margin: 12px 225px !important;
        width: 40% !important;
        display: grid !important;
    }

    .stats-grid,
    .sub-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sub-feature-item {
        border-left: none;
    }

    .feature-icon {
        display: none !important;
    }

    .feature-text small {
        font-size: 14px !important;
    }

    .feature-text .fw-bold {
        font-size: 16px !important;
    }

    /* Categories */
    .category-container {
        margin: 0 40px;
        flex-wrap: unset;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .category-grid2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-wide,
    .cat-square {
        grid-column: span 1;
        aspect-ratio: 16 / 10;
    }

    .cat-square {
        aspect-ratio: 217 / 218 !important;
    }

    .category-card {
        padding: 28px;
    }

    .category-card2 {
        padding: 5px;
    }

    .cat-content {
        max-width: 60%;
    }

        .cat-content h3 {
            font-size: 18px;
            margin-bottom: 6px;
        }

        .cat-content p {
            font-size: 12px;
            line-height: 1.3;
            margin-bottom: 10px;
        }

    .cat-content2 i {
        font-size: 1.8rem;
    }

    .btn-cat {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Properties & Cards */
    .prop-img-wrapper {
        height: 300px;
    }

    .prop-content {
        margin-top: -85px;
        padding: 16px;
    }

    .prop-title {
        font-size: 18px;
    }

    .feature-item {
        min-height: 56px;
    }

    .prop-price-btn {
        padding: 12px 0;
        font-size: 15px;
        border-radius: 12px;
    }

    /* Sections */
    .action-row {
        flex-direction: column;
        align-items: center;
    }

    .col-md-3-5 {
        width: 50%;
    }

    .laptop-section,
    .app-section,
    .contact-section {
        padding: 50px 0;
    }

    .navigation-process-section {
        background-size: unset;
    }

    .navigation-inner-container {
        transform: unset;
    }

    .sanad-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .services-timeline {
        flex-wrap: wrap;
        gap: 30px 10px;
    }

        .services-timeline::before {
            display: none;
        }

    .timeline-step {
        flex: 0 0 30%;
    }

    /* App Section Specifics */
    .app-text-col,
    body[dir="rtl"] .app-text-col {
        text-align: center;
    }

    .app-title {
        font-size: 60px;
    }

    .app-subtitle {
        font-size: 35px;
    }

    .app-desc,
    body[dir="rtl"] .app-desc {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .store-buttons-wrapper,
    body[dir="rtl"] .store-buttons-wrapper {
        justify-content: center;
    }

    .phone-composition {
        height: 400px;
        max-width: 350px;
        margin-top: 40px;
    }

    /* Utility Elements */
    .portal-icon-box i {
        font-size: 2.5em !important;
    }

    .text-white-50 {
        font-size: 16px !important;
    }

    .fw-bold {
        font-size: 18px !important;
    }

    .phone-front {
        width: 16% !important;
        right: 11% !important;
    }

    .phone-back {
        width: 16% !important;
    }

    .search-box .col-md-9 {
        width: 60%;
    }

    .search-box div.row div.col-lg-2 {
        width: 16% !important;
    }

    .search-box div.row div.col-10 {
        width: 100%;
    }

    .contact-title-lg {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .contact-form-card {
        padding: 30px;
    }
}


/* ==========================================
   5. MOBILE PHONES (max-width: 767px)
   ========================================== */
@media (max-width: 767px) {
    /* Hero */
    body[dir="ltr"] #hero-container-row,
    body[dir="rtl"] #hero-container-row {
        padding-left: 0;
        padding-right: 0;
    }

    /* Grids & Layouts */
    .features-grid {
        flex-direction: column !important;
        margin: 0 220px !important;
        width: 40% !important;
        justify-content: center !important;
    }

    .col-md-3-5 {
        width: 70%;
    }

    .search-selects-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .row.mb-3.flex-row .col-10 {
        padding-right: 8px;
    }

    .row.mb-3.flex-row .col-lg-2 {
        justify-content: center;
        margin-top: 8px;
    }

    /* Overlays & Interactive Components */
    .blur-overlay {
        width: fit-content;
        height: fit-content;
        padding: 20px;
        border-radius: 10px;
    }

    .dream-text {
        font-size: 20px;
    }

    body[dir="rtl"] .dream-text {
        font-size: 28px;
    }

    a:hover .dream-text {
        font-size: 22px;
    }

    body[dir="rtl"] a:hover .dream-text {
        font-size: 32px;
    }

    /* Navigation & Sections */
    .navigation-process-section {
        max-height: unset;
        height: unset;
    }

    .navigation-container {
        padding: 60px 15px;
    }

    .navigation-icons {
        flex-direction: column;
    }

    .navigation-icons-item {
        flex-wrap: wrap;
        align-content: center;
    }

    .laptop-section {
        padding: 30px 0;
    }

    .laptop-wrapper {
        margin-bottom: 20px;
    }

    .laptop-text {
        font-size: 14px;
        padding: 0 15px;
    }

    /* Pricing Section */
    .pricing-title {
        font-size: 40px;
    }

    .pricing-card h2 {
        font-size: 50px;
    }

    .phone-front {
        width: 15% !important;
        right: 16% !important;
    }

    .phone-back {
        width: 23% !important;
        top: 122px !important;
        left: 46% !important;
    }
}


/* ==========================================
   6. SMALL MOBILE / COMPACT (max-width: 576px)
   ========================================== */
@media (max-width: 576px) {
    .categories-section {
        display: flex;
        justify-content: center;
    }
    .main-title {
        font-size: 26px;
    }

    .sub-title {
        font-size: 16px;
    }

    .stat-number {
        font-size: 20px;
    }

    /* Grid Adjustments */
    .stats-grid,
    .sub-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .sub-features-grid {
        gap: 15px;
    }

    .category-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 12px;
    }
  
    .features-grid {
        margin: 12px 34px !important;
        width: 77% !important;
    }

    .m-resposev {
        margin-top: 50% !important;
    }

    .timeline-step {
        flex: 0 0 45%;
    }

    /* Cards & Components */
    .floating-badge {
        font-size: 12px;
        padding: 10px 18px;
        width: 90%;
        justify-content: center;
    }

    .main-feature-box {
        flex-direction: column;
        text-align: center;
    }

    .cat-square {
        aspect-ratio: auto;
        min-height: 190px;
        aspect-ratio: 332 / 217 !important;
    }

    .category-card {
        padding: 15px;
    }

    .cat-content h3 {
        font-size: 15px;
    }

    .cat-content p {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .btn-cat {
        padding: 6px 12px;
        font-size: 11px;
        display: inline-block;
        margin-top: auto;
    }

    .category-container {
        margin: 0 15px;
    }

    /* Properties Section */
    .prop-img-wrapper {
        height: 240px;
    }

    .prop-content {
        margin-top: -56px;
        padding: 12px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .feature-item {
        min-height: 48px;
        padding: 8px;
    }

    .prop-price-btn {
        padding: 10px 0;
        font-weight: 500;
        border-radius: 12px;
    }

    body[dir="rtl"] .prop-price-btn {
        font-weight: 400;
    }

    /* Hero & Select2 Tweaks (<= 520px) */
    .hero-content h1 {
        font-size: 36px;
        margin: 0 0 10px 0;
    }

    .portal-panel {
        left: 12px !important;
        right: 12px !important;
        width: calc(100% - 24px) !important;
    }

    .filter-trigger > span {
        max-width: 120px;
    }

    .select2-container--default .select2-selection--single::after,
    .select2-container--default .select2-selection--multiple::after,
    .filter-trigger::after,
    .custom-select-wrap.filter-trigger::after {
        right: 10px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #8c9198;
    }

    .select2-container--default.select2-container--open .select2-selection--single::after,
    .select2-container--default.select2-container--open .select2-selection--multiple::after {
        transform: translateY(-50%) rotate(180deg);
    }

    [dir="rtl"] .filter-trigger::after,
    [dir="rtl"] .custom-select-wrap.filter-trigger::after {
        left: 10px;
    }
}


@media (max-width: 480px) {
    /* Hero Adjustments */
    .font-size-developers {
        font-size: 16px !important;
        color: #fff;
    }
    .hero-content {
        max-width: 100%;
        width: 100%;
    }
    .main-city-img {
        height: 215px;
    }   
    .phone-back {
        width: 30% !important;
        top: 200px !important;
        left: 40% !important;
    }
    .phone-front {
        width: 30% !important;
        right: 46% !important;
        top: 25%;
    }
    .hero-img-container {
  
        margin-bottom: 60px;
    }
    .floating-badge {
   
        margin: -40px 0;
    }
    .category-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 10px !important;
    }

    .cat-square {
        max-height: 140px !important;
        
        width: 350px;
    }

    .category-card {
        padding: 10px !important;
    }

    .cat-content h3 {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }

    .cat-content p {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
    }

    .btn-cat {
        font-size: 10px !important;
        margin-bottom: 25px;
        z-index: 100000!important;
    }
    .hero-content-text {
        width: 100%;
        margin: 0 0%;
        padding: 5px;
    }

    .hero-content p {
        text-align: center;
    }

    body[dir="rtl"] .hero-content p {
        font-size: 20px;
    }

    .hero-action-btns {
        flex-direction: column;
        gap: 6px;
        width: unset;
    }

    /* Search & Widgets */
    .search-box div.row.align-items-center {
        flex-direction: column;
    }

        .search-box div.row.align-items-center div.mb-3 {
            width: 100%;
        }

    .search-tabs .s-tab {
        padding: 4px 28px;
    }

    body[dir="ltr"] .side-widgets {
        right: 10px;
    }

    body[dir="rtl"] .side-widgets {
        left: 10px;
    }

    .circles-wrapper {
        height: 300px;
        max-width: 300px;
    }

    .circle-top {
        width: 140px;
        height: 140px;
    }

    .circle-bottom {
        width: 190px;
        height: 190px;
    }

    .stats-number {
        font-size: 32px;
    }

    .circle-item {
        padding: 4px;
    }

    .circle-inner {
        padding: 5px;
    }

    /* Forms & Pricing */
    .pricing-toggle {
        width: 100%;
    }

    .p-toggle-btn {
        padding: 10px 0;
        flex: 1;
        text-align: center;
    }

    .contact-title-lg {
        font-size: 30px;
    }

    .contact-form-card {
        padding: 20px;
    }

    .btn-contact-submit {
        width: 100%;
    }

    .contact-us-item {
        gap: 15px;
    }

    .contact-icon {
        margin-right: 15px;
    }

    body[dir="rtl"] .contact-icon {
        margin-left: 15px;
        margin-right: 0;
    }

    .cat-content h3 {
        font-size: 22px;
    }

    .cat-content p {
        font-size: 14px;
    }
}

/* Very Small Devices (< 400px) */
@media (max-width: 400px) {
    .category-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 10px !important;
    }
    .font-size-developers {
        font-size: 16px !important;
        color: #fff;
    }
    .cat-square {
        aspect-ratio: 1 / 1 !important; /* شكل مربع متناسق */
        max-height: 140px !important; /* تقييد الارتفاع */
  
    }

    .category-card {
        padding: 10px !important;
    }

    .cat-content h3 {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }

    .cat-content p {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
    }

    .btn-cat {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }
    .btn-cat {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 12px !important;
        width: fit-content !important;
        z-index: 10 !important;
        position: relative !important;
    }
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .phone-composition {
        height: 300px;
        max-width: 280px;
    }


    .store-img-link img {
        height: 45px;
    }

    .cat-content {
        max-width: 100%;
    }
}

@media (max-width: 374px) {
    .categories-section {
        display: flex;
        justify-content: center;
    }
    .category-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 10px !important;
    }

    /* 2. إلغاء النسبة المربعة وتحديد ارتفاع ثابت متوافق مع كل المحركات */
    .cat-square {
        aspect-ratio: unset !important;
        height: 105px !important;
        max-height: unset !important;
        min-height: auto !important;
    }

    /* 3. تنسيق البطاقات والمحتوى */
    .category-card {
        padding: 10px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .cat-content h3 {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }

    .cat-content p {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
    }

    /* 4. تنظيف زر btn-cat وحذف التكرار */
    .btn-cat {
        padding: 5px 10px !important;
        font-size: 11px !important;
        width: fit-content;
    }

    /* 5. الهيرو والتبويبات */
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .search-tabs .s-tab {
        padding: 4px 12px;
    }
}